package com.xujiang.myblog.tools;

import java.util.List;

/**
 * Created by xujiang on 2017/4/12.
 */

public class ListToString {

    public static String listtostringnull(List<String> list) {

        if (list == null) {
            return null;
        } else {

            StringBuilder result = new StringBuilder();
            for (String b : list) {
                result.append(b);
                result.append(" ");
            }
            return result.toString();
        }
    }
}
